<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">
			Sửa bài thi
		</h1>
	</div>
	<!-- /.col-lg-12 -->
</div>
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				Bài thi <?=$v['name']?>
			</div>
			<div class="panel-body">
				<div class="row">
                    <form id="defaultForm" role="form" action=""  method="post" name="daily" enctype="multipart/form-data">
					<div class="col-lg-6">
							<div class="form-group">
								<label>
									Tên 
								</label>
								<input name="name" type="text" value="<?=$v['name']?>"  class="form-control">
								<p class="help-block">

								</p>
							</div>
                            <div class="form-group">
								<label>
									SEO 
								</label>
								<input name="alias" type="text" value="<?=$v['alias']?>" class="form-control">
								<p class="help-block">

								</p>
							</div>
                            <div class="form-group">
								<label>
									Mô tả 
								</label>
								<textarea name="description" class="form-control"><?=$v['description']?></textarea>
								<p class="help-block">

								</p>
							</div>
                      </div>
                      <div class="col-lg-12">
                            <div class="form-group">
								<label>
									Nội dung 
								</label>
								<textarea name="content" class="form-control"><?=$v['content']?></textarea>
								<p class="help-block">

								</p>
							</div>
                            
                            <div class="form-group">
								<label>
									Hình ảnh
								</label>
								<input type="file" name="picture" />
								<p class="help-block">

								</p>
							</div>
                            
                            <div class="form-group">
								<label>
									Link video
								</label>
								<input name="link" type="text" value="<?=$v['link']?>"  class="form-control">
								<p class="help-block">
                                    
								</p>
							</div>
                            
                            <div class="form-group">
								<label>
									Trạng thái:
								</label>
								<select name="status">
                                    <?php
                                        if($v['status'] == 0){
                                            echo '<option value="0" selected="">Đóng</option>';
                                            echo '<option value="1">Mở</option>';
                                        }else{
                                            echo '<option value="0">Đóng</option>';
                                            echo '<option value="1" selected="">Mở</option>';
                                        }
                                    ?>
                                </select>
								<p class="help-block">
                                    Đóng(Không hiển thị)/Mở(Hiển thị)
								</p>
							</div>
                            
							<button type="submit" class="btn btn-primary">
								Lưu
							</button>
					</div>
                    </form>
					<!-- /.col-lg-6 (nested) -->
					
					<!-- /.col-lg-6 (nested) -->
				</div>
				<!-- /.row (nested) -->
			</div>
			<!-- /.panel-body -->
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
</div>